package cn.dyj.middleware.dynamic.thread.pool.sdk.domain;

import cn.dyj.middleware.dynamic.thread.pool.sdk.domain.model.entity.ThreadPoolConfigEntity;

import java.util.List;

/**
 * className:IDynamicThreadPoolService
 * Description:动态线程池服务
 *
 * @Author 董雅洁
 * @Create 2025/3/3 20:37
 * @Version 1.0
 */
public interface IDynamicThreadPoolService {
    //得到线程池配置的集合
    List<ThreadPoolConfigEntity> queryThreadPoolList();

    //根据线程池名字的方式取去查询当前的线程池
    ThreadPoolConfigEntity queryThreadPoolConfigByName(String threadPoolName);

    //动态调整线程池配置
    void updateThreadPoolConfig(ThreadPoolConfigEntity threadPoolConfigEntity);
}
